const pool = require('../config/config.default')

module.exports.mysqlQuery = async (sql, values, callback)=>{
  pool.getConnection((err, conn)=>{
    try{
      if(err) throw
      conn.query(sql, values, (err, results, fields)=>{
        return 
      })
    }catch(err){
      console.log(err.message)
    }finally{
      conn.release()
    }
  })
}

